<!-- 注册页面  -->
<!-- 忘记密码页面  -->
<!DOCTYPE html>
<html>

<head>

    <meta charset="UTF-8">

    <!-- 页面显示适应移动设备 -->
    <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">

    <title>我的APP</title>
    <link rel="stylesheet" href="resources\we-vue\style.css">
    <link rel="stylesheet" href="resources\css\font-awesome.min.css">
    <style>
        /*元素选择器*/

        html{
            height:100%;
        }
        body{

            height:100%;
            padding:0px;/*内边距*/
            margin:0px;/*外边距*/
            background-color:#eeeeee;


        }
    
    
    </style>


</head>


<body>

    <!-- div ：举行区域 -->
    <div id="app" class="my-container">

        <div style="padding-top: 15%; text-align: center;">
            <img style="width:50%;height:30%; " src="resources\images\donghua.gif">
        </div>
        <div style="color:#548d81">
            <wv-group>
                <wv-input label="注册名" placeholder="请输入注册名" v-model="emp.e_name"></wv-input>
                <wv-input label="密码" placeholder="请输入密码" type="password" v-model="emp.e_pwd"></wv-input>
                <wv-input label="确认密码" placeholder="请再次输入密码" type="password" v-model="emp.e_pwd1"></wv-input>
            </wv-group>
        </div>

        <wv-button type="primary" @click="zhucexinhao1" style="margin-top:20px;">确定</wv-button>



    </div>

</body>
<script src="resources\js\vue.min.js"></script>
<script src="resources\js\jquery.min.js"></script>
<script src="resources\we-vue\index.js"></script>
<script src="resources\layer_mobile\layer.js"></script>
<script src="resources\js\my.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            emp: {
                e_name: '',
                e_pwd: '',
                e_pwd1:''
            }

        },
        methods: {
            
            zhucexinhao1() {
                if(this.emp.e_pwd!=this.emp.e_pwd1){
                    //Toast.fail('请输入帐号！');
                    TopTips('两次输入密码不匹配！');
                    
                    return;
                  }

                //服务器执行操作
                Serv.operate(
                    {
                        url: '/zhuce.jsp',
                        data: this.emp
                    },
                    () => {//箭头函数

                        setTimeout(() => {
                            window.location.href = 'index.html';
                        }, 1000);
                    }
                );
                //Toast.success('注册成功！');
                

            }

        }
    });
</script>


</html>